Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge VCF records at the same position together after bcftools norm left shifts them #1536

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

glennhickey
Copy link
Collaborator

This adds @Han-Cao's merge_duplicates.py as a post-processing step after bcftools norm -f.

It merges together records at the same position that bcftools norm can create (see the original issue, #1493, for details).

Unfortunately, it seems like bcftools norm can shift together sites that can't be represented as one without allele conflicts. So the --keep first heuristic is used by default to choose one, but can be toggled in the mergeDuplicatesOptions field on the config XML.

As it stands bcftools norm -f and merge_duplicates.py are both on by default for vcfwave output. To apply it to the "Default" vcfs, then bcftoolsNorm="1" needs to be activated in the config.

Stacks on #1491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant